package com.trendit.openapi.util;

import java.time.format.DateTimeFormatter;

public class LocalDateTimeUtils {

    /**
     * 日期时间格式化
     */
    public static final String DATE_TIME_FORMAT_PATTERN = "yyyy-MM-dd HH:mm:ss";
    /**
     * 日期格式化
     */
    public static final String DATE_FORMAT_PATTERN = "yyyy-MM-dd";
    /**
     * 时间格式化
     */
    public static final String TIME_FORMAT_PATTERN = "HH:mm:ss";
    /**
     * 时间格式化
     */
    public static final String HOUR_MINUTE_FORMAT_PATTERN = "HH:mm";

    /**
     * 日期时间格式化
     */
    public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DATE_TIME_FORMAT_PATTERN);
    /**
     * 日期格式化
     */
    public static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(DATE_FORMAT_PATTERN);
    /**
     * 时间格式化
     */
    public static final DateTimeFormatter TIME_FORMATTER = DateTimeFormatter.ofPattern(TIME_FORMAT_PATTERN);
    /**
     * 时分格式化
     */
    public static final DateTimeFormatter HOUR_MINUTE_FORMATTER = DateTimeFormatter.ofPattern(HOUR_MINUTE_FORMAT_PATTERN);

}
